package com.simple.gateway.center.basedata.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.simple.gateway.center.basedata.po.GatewayServerDetail;
import java.util.List;

/**
* 项目: simple-gateway-core
*
* 功能描述: 网关详情表
*
* @author: yysimple
* @create: 2023-08-07 14:11:11
**/
@Mapper
public interface GatewayServerDetailMapper extends BaseMapper<GatewayServerDetail> {

    /**
    * 通过ID查询单个网关详情表
    *
    * @param id ID
    * @return {@link GatewayServerDetail}
    */
    GatewayServerDetail findGatewayServerDetailById(@Param("id") Long id);

    /**
    * 多条件查询GatewayServerDetail列表
    *
    * @param gatewayServerDetail
    * @return java.util.List<GatewayServerDetail>
    */
    List<GatewayServerDetail> listGatewayServerDetail(GatewayServerDetail gatewayServerDetail);

    /**
    * 新增网关详情表
    *
    * @param gatewayServerDetail 网关详情表
    */
    void insertGatewayServerDetail(GatewayServerDetail gatewayServerDetail);

    /**
    * 修改网关详情表
    *
    * @param gatewayServerDetail 网关详情表
    */
    void updateGatewayServerDetail(GatewayServerDetail gatewayServerDetail);

    /**
    * 通过ID删除单个网关详情表
    *
    * @param id ID
    */
    void deleteGatewayServerDetailById(@Param("id") Long id);

    /**
     * 更新状态
     *
     * @param gatewayServerDetail
     * @return
     */
    boolean updateGatewayStatus(GatewayServerDetail gatewayServerDetail);
}
